aom = EquipmentControl.ExecutionEquipment.AOM.AA('Pol Beam');
aom.controlledBy(tek, 1);

%%
rigol.setWaveOffset(1, 2);
for voltage = 1:4
    aom.setDC(5);
    pause(120);
    aom.setDC(0);
    pause(0.1);


    rigol.setWaveAmplitude(1, voltage);
    rigol.forceTrigger;
    pause(120);
end

disp('Measurement finished.');